package cn.xinyangtong.shopping.rest.dao;

public interface JedisClient {

	String get(String key);
	String set(String key, String value);
	
	String hget(String hkey, String key);
	long hset(String hkey, String key, String value);
	
	long incr(String key);
	/***
	 * 设置有效期
	 * @param key
	 * @param second
	 * @return
	 */
	long expire(String key, int second);
	long ttl(String key);
	
	long del(String key);
	long hdel(String hkey, String key);
	
}
